package com.example.user.service.domain.valueobject;


public record IsSuper(boolean value) {
    public IsSuper {

        if (value && !isValidSuperUser()) {
            throw new IllegalArgumentException("Invalid super user configuration");
        }
    }
    private boolean isValidSuperUser() {

        return true;
    }

    public static IsSuper fromBoolean(boolean value) {
        return new IsSuper(value);
    }

}
